home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
win_e_h
/
gpmww1.zip
/
README.TXT
< prev
next >
Wrap
Text File
|
1992-01-05
|
3KB
|
39 lines
The file GPMWW1.ZIP contains a Visual Basic program that uses DDE
to create a form-based document in Microsoft Word for Windows (Winword).
The VB program is PROMNOTE.EXE: I am posting it here as an example of how
VB and Winword can be used together via DDE (the source code for the VB
program is being posted in the MSBASIC forum as GPMVB1.ZIP). The remaining
file in this package is VBNOTE.DOT, a Winword 1.x template that should be
copied to your Winword template directory before running the VB program.
Running the VB program will call up a form that collects data for
a simple promissory note. When data entry is complete, there is a button
on the form that can be used to call up Winword and create a promissory
note using the VBNOTE template. VBNOTE.DOT has dde fields that read data
out of the VB program. The dde fields are embedded in set fields that
assign the result of the dde field to a bookmark, which is then referenced
and formatted where applicable in the document; if you have a color monitor,
the items in the document that trace back to the VB form should show up in red.
A table at the beginning of the Winword document summarizes the data from the VB program used in the document.
If Winword is not running, the program will attempt to start it up.
Because I don't include much in my path and have been too lazy to work on
configuration routines, the program looks for a winword.ini file in c:\winword
and d:\winword. If it finds one, it assumes that directory is your winword
directory; otherwise, it asks for your winword directory.
The "Get Data" button calls up another form that can be used to read
data back out of a promissory note created by the VB program (or any other
Winword file that uses the same bookmark names). The data can then be edited
and used to create a new note based on the revised data. You can also use the
revised data to update the existing note, but you have to do it manually, i.e.,
while the VB form is still onscreen, switch to the Winword document and
manually update all of its fields (press Control plus 5 on the numeric keypad
to select the entire document, then F9 to update the fields; you may have to
unlock the fields (Control + Shift + F11) first). Ideally, the forms would
be better integrated, i.e., you would have a Winword macro that could call up
the VB program, etc., but I haven't gotten around to that aspect of the project.
This all works on my machine, but cross your fingers before letting
her rip!
g.p.m.
CIS No. 72040,110
1/5/92